<!DOCTYPE html>
<html lang="en">

<head>
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>乐淘分类</title>
    <link rel="stylesheet" href="./assets/mui/css/mui.min.css">
    <script src="./assets/mui/js/mui.min.js"></script>
    <link rel="stylesheet" href="./css/category.css">
    <link rel="stylesheet" href="./assets/mui/css/iconfont.css">
    <script src="./assets/artTemplate/template-native.js"></script>
    <script src="./assets/zepto/zepto.min.js"></script>
    <script src="./js/category.js"></script>
    <script src="./js/common.js"></script>
</head>

<body>
    <!-- 顶部搜索栏  开始 -->
    <header class="mui-bar mui-bar-nav header">
        <a href="index.html" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
        <h1 class="mui-title">商品分类</h1>
        <a href="search.html" class="mui-icon mui-icon-search mui-pull-right"></a>
    </header>
    <!-- 顶部搜索栏  结束 -->
    <!-- 底部分类  开始 -->
    <nav class="mui-bar mui-bar-tab footer">
        <a class="mui-tab-item" href="index.html">
            <span class="mui-icon mui-icon-home"></span>
            <span class="mui-tab-label">首页</span>
        </a>
        <a class="mui-tab-item mui-active" href="category.html">
            <span class="mui-icon mui-icon-bars"></span>
            <span class="mui-tab-label">分类</span>
        </a>
        <a class="mui-tab-item" href="cart.html">
            <span class="mui-icon iconfont icon-gouwuche"></span>
            <span class="mui-tab-label">购物车</span>
        </a>
        <a class="mui-tab-item" href="user.html">
            <span class="mui-icon mui-icon-person"></span>
            <span class="mui-tab-label">会员中心</span>
        </a>
    </nav>
    <!-- 底部分类  结束 -->
    <div class="my-content">
        <!-- 左边导航栏  开始 -->
        <div class="category-left">
            <div class="mui-scroll-wrapper">
                <div class="mui-scroll">
                    <div class="link">

                    </div>
                </div>
            </div>
        </div>
        <!-- 左边导航栏  结束 -->
        <!-- 右边导航栏  开始 -->
        <div class="category-right">
            <div class="mui-scroll-wrapper">
                <div class="mui-scroll">
                    <div class="brand_list">

                    </div>
                </div>
            </div>
        </div>
        <!-- 右边导航栏  结束 -->
    </div>
    <script id="category-one" type="text/template">
        <% for(var i=0;i<data.length;i++){ %>
            <a href="javascript:;" class="links" id="<%=data[i].id %>">
                <span>❤</span>
                <%=data[i].categoryName %>
            </a>
            <% } %>
    </script>
    <script id="category-two" type="text/template">
        <% for(var i=0;i<rows.length;i++){ %>
            <a href="javascript:;" class="brand-list">
                <img src="<%=rows[i].brandLogo %>" alt="">
                <p><%=rows[i].brandName %></p>
            </a>
            <% } %>
                <% if(!rows.length){ %>
                    <div class="w">暂无数据</div>
                    <% } %>
    </script>
</body>

</html>